package com.woniuxy.member.client;

import com.woniuxy.member.client.param.AddCommentParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient(contextId = "commentManageClient",name="member",path="member")
public interface CommentManageClient {
    @PostMapping("/addComment")
    public Result addComment(@RequestBody AddCommentParam addCommentParam);

    @DeleteMapping("/delStoreComment")
    public Result delStoreComment(@RequestParam("storeId")Integer storeId,@RequestParam("commentId")Integer commentId);

    @DeleteMapping("/delComment")
    public Result delComment(@RequestParam("commentId")Integer commentId);

}
